package cn.zhaoyuening.zshop4j.search.service;

import cn.zhaoyuening.zshop4j.common.bean.SearchResult;
import cn.zhaoyuening.zshop4j.common.bean.ZShop4jResponceResult;

import java.io.IOException;

/**
 * Created by 赵岳宁 on 2017/5/1.
 */
public interface SearchService {
    /**
     * 将所有商品条目导入到搜索索引中
     * @return 添加结果
     */
    ZShop4jResponceResult importAllItems() throws IOException,  org.apache.solr.client.solrj.SolrServerException;

    SearchResult search(String queryString, int page, int rows) throws Exception;
}
